(function () {
  const response = {
    type: "page",
    title: "模板管理",
    body: [
      {
        type: "tpl",
        tpl: "这是你刚刚新增的页面。",
        inline: false,
      },
      {
        type: "crud",
        api: "",
        columns: [
          {
            name: "id",
            label: "ID",
            type: "text",
          },
          {
            name: "name",
            label: "模板名称",
            type: "text",
            placeholder: "-",
          },
          {
            name: "logo",
            label: "图标",
            type: "text",
            placeholder: "-",
          },
          {
            name: "desc",
            label: "模板描述",
            type: "text",
            placeholder: "-",
          },
          {
            name: "category",
            label: "优惠券分类",
            type: "text",
            placeholder: "-",
          },
          {
            name: "productLine",
            label: "产品线",
            type: "text",
            placeholder: "-",
          },
          {
            name: "target",
            label: "目标用户",
            type: "text",
            placeholder: "-",
          },
          {
            name: "limitation",
            label: "优惠券领取限制",
            type: "text",
          },
          {
            name: "period",
            label: "有效期规格",
            type: "text",
          },
          {
            name: "gap",
            label: "有效期间隔",
            type: "text",
          },
          {
            name: "deadLine",
            label: "优惠券模板的失效日期",
            type: "text",
          },
          {
            name: "quota",
            label: "优惠券折扣额度",
            type: "text",
          },
          {
            name: "base",
            label: "折扣基准",
            type: "text",
          },
          {
            name: "province",
            label: "省份",
            type: "text",
          },
          {
            name: "city",
            label: "城市",
            type: "text",
          },
          {
            name: "goodsType",
            label: "商品类型",
            type: "text",
          },
          {
            name: "weight",
            label: "权重",
            type: "text",
          },
        ],
        bulkActions: [],
        itemActions: [],
      },
    ],
    messages: {},
    style: {},
    initApi: "http://127.0.0.1:8500/api/template/pagelist",
  };

  window.jsonpCallback && window.jsonpCallback(response);
})();
